import request from '@/utils/request'

// 查询借款用户授信资料列表
export function listUser(query) {
  return request({
    url: '/user/user/list',
    method: 'get',
    params: query
  })
}

export function UidList(query) {
  return request({
    url: '/user/user/cuser/Uidlist',
    method: 'get',
    params: query
  })
}

// 查询借款用户授信资料详细
export function getUser(cid) {
  return request({
    url: '/user/user/query/' + cid,
    method: 'get'
  })
}

// 新增借款用户授信资料
export function addUser(data) {
  return request({
    url: '/user/user/add',
    method: 'post',
    data: data
  })
}

// 修改借款用户授信资料
export function updateUser(data) {
  return request({
    url: '/user/user/edit',
    method: 'put',
    data: data
  })
}

// 删除借款用户授信资料
export function delUser(cid) {
  return request({
    url: '/user/user/remove/' + cid,
    method: 'delete'
  })
}

export function SxRy(body) {
  return request({
    url: '/user/user/cuser/SxRy',
    method: 'post',
    data: body
  })
}

export function ShAdd(data) {
  return request({
    url: '/user/user/audit',
    method: 'post',
    data: data
  })
}
